/**
 * 数组中字符串的最大值
 *
 * @USER: Administrator
 * @DATE: 2024/10/5 上午9:38
 * @VERSION: 1.0.0
 */
public class LC2496 {
    public static void main(String[] args) {

    }

    public int maximumValue(String[] strs) {
        int max = 0;
        int value;
        for (String str : strs) {
            try {
                value = Integer.parseInt(str);
            }catch (Exception e){
                value = str.length();
            }
            if (value > max) {
                max = value;
            }
        }
        return max;
    }
}
